package com.bob.debt.entity.base;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JacksonXmlRootElement
public class ApplicationHeader implements Serializable {

    // 编码格式
    @JacksonXmlProperty(localName = "CharSet")
    private String charset;

    // 发起方
    @JacksonXmlProperty(localName = "Fr")
    private MechanismInfo from;

    // 接受方
    @JacksonXmlProperty(localName = "To")
    private MechanismInfo to;

    // 报文流水号
    @JacksonXmlProperty(localName = "MsgIdr")
    private String messageIdentifier;

    // 报文类型号
    @JacksonXmlProperty(localName = "MsgDefIdr")
    private String messageDefinitionIdentifier;

    // 报文创建时间
    @JacksonXmlProperty(localName = "CreDt")
    private String createDate;

    // 重发标识
    @JacksonXmlProperty(localName = "PssblDplct")
    private Boolean possibleDuplicated;

    // 关联域
    @JacksonXmlProperty(localName = "Rltd")
    private ApplicationHeader related;


}


